package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.RkdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface RkdService extends BaseService<RkdBean> {

	RkdBean getRkdBeanById(String id) throws Exception;
	
	void removeRkdBeanById(String id) throws Exception;
	
	void removeRkdBeanByIds(String ids) throws Exception;
	
	RkdBean saveRkdBean(RkdBean crm) throws Exception;
	
	RkdBean updateRkdBean(RkdBean crm) throws Exception;
	
	Page<RkdBean>  findRkdBeanByCond(RkdBean bean,
			Page<RkdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveRkdBeanExt(String sql) throws Exception;

	String findRkdBeanExtCreate(String tableName) throws Exception;

	String findRkdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findRkdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasRkdBeanExtData(String tableName, String id)
			throws Exception;
}